CentOS 7
Sponsored Link

Redmine : Install
2015/07/05
 
Install Redmine which is the Project Management Tool.
[1]
[2]
[3]
[4]
[5] Install other required packages.
[root@dlp ~]#
yum -y install ImageMagick ImageMagick-devel libcurl-devel httpd-devel mariadb-devel ipa-pgothic-fonts
[6] Create a user and database for Redmine on MariaDB.
[root@dlp ~]#
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.41-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
create database redmine;

Query OK, 1 row affected (0.00 sec)
# set any password for 'password' section

MariaDB [(none)]>
grant all privileges on redmine.* to redmine@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
exit
[7] Download and install Redmine. Make sure the latest one on the site below.
⇒ http://www.redmine.org/projects/redmine/wiki/Download
[root@dlp ~]#
wget http://www.redmine.org/releases/redmine-3.0.3.tar.gz

[root@dlp ~]#
tar zxvf redmine-3.0.3.tar.gz

[root@dlp ~]#
mv redmine-3.0.3 /var/www/redmine

[root@dlp ~]#
cd /var/www/redmine

[root@dlp redmine]#
vi ./config/database.yml
# create new

production:
    adapter: mysql2
   
# database name

    database: redmine
    host: localhost
   
# database user

    username: redmine
   
# password for user above

    password: password
    encoding: utf8
[root@dlp redmine]#
vi ./config/configuration.yml
# create new (SMTP settings)

production:
    email_delivery:
        delivery_method: :smtp
        smtp_settings:
            address: "localhost"
            port: 25
            domain: 'dlp.srv.world'
    rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf
# install bundler

[root@dlp redmine]#
gem install bundler --no-rdoc --no-ri

# install Gem for Redmine

[root@dlp redmine]#
bundle install --without development test postgresql sqlite

# generate keys

[root@dlp redmine]#
bundle exec rake generate_secret_token

# generate tables

[root@dlp redmine]#
bundle exec rake db:migrate RAILS_ENV=production

# install Passenger

[root@dlp redmine]#
gem install passenger --no-rdoc --no-ri

# install modules for Apache2

[root@dlp redmine]#
passenger-install-apache2-module

Welcome to the Phusion Passenger Apache 2 module installer, v5.0.6.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.
1
 
# specify 1 and Enter

.....
.....
After you restart Apache, you are ready to deploy any number of web
applications on Apache, with a minimum amount of configuration!
.....
[8] Configure httpd for Redmine. This example shows to configure it on virtual hostings.
[root@dlp redmine]#
vi /etc/httpd/conf.d/passenger.conf
# create new

LoadModule passenger_module /usr/lib64/ruby/gems/2.2.0/gems/passenger-5.0.13/buildout/apache2/mod_passenger.so
PassengerRoot /usr/lib64/ruby/gems/2.2.0/gems/passenger-5.0.13
PassengerDefaultRuby /usr/bin/ruby
NameVirtualHost *:80
<VirtualHost *:80>
    ServerName dlp.srv.world
    DocumentRoot /var/www/redmine/public
</VirtualHost>
[root@dlp redmine]#
chown -R apache. /var/www/redmine

[root@dlp redmine]#
systemctl restart httpd

[9] Access to the URL you configured on httpd, then Redmine's index page is shown like follows. Click "Sing in" button.

 

[10] Login with the initial username/password "admin/admin".
[11] Just logined. Change admin password first. Click "My account".

 

[12] Click "admin".

 

[13] Click "edit".

 

[14] Input any password you like in the Authentication field and change it.
 
Tweet